package com.wfuhui.modules.order.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;

import java.math.BigDecimal;

@ExcelTarget("financeGroup")
public class FinanceGroup {

	private Integer id;

	@Excel(name = "团长", width = 30, isImportField = "store_name")
	private String storeName;
	@Excel(name = "姓名", width = 30, isImportField = "real_name")
	private String realName;
	@Excel(name = "手机号", width = 30, isImportField = "mobile")
	private String mobile;
	private Integer total;
	@Excel(name = "收入", width = 30, isImportField = "total_amount")
	private BigDecimal totalAmount;
	@Excel(name = "退款", width = 30, isImportField = "refund_amount")
	private BigDecimal refundAmount;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getStoreName() {
		return storeName;
	}

	public void setStoreName(String storeName) {
		this.storeName = storeName;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public BigDecimal getTotalAmount() {
		if(totalAmount == null){
			return new BigDecimal(0);
		}
		return totalAmount.setScale(2);
	}

	public void setTotalAmount(BigDecimal totalAmount) {
		this.totalAmount = totalAmount;
	}

	public BigDecimal getRefundAmount() {
		if(refundAmount == null){
			return new BigDecimal(0);
		}
		return refundAmount.setScale(2);
	}

	public void setRefundAmount(BigDecimal refundAmount) {
		this.refundAmount = refundAmount;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}
	
}
